package com.example.waimai.context;

import com.baidu.mapapi.model.LatLng;
import com.baidu.mapapi.search.core.PoiInfo;
import com.example.waimai.pojo.User;
import com.example.waimai.pojo.UserAddress;

import java.util.ArrayList;

public class UserInfoContext {
    // 记录用户的信息
    public  static User mUser = new User();
    public  static ArrayList<UserAddress> mUserAddress =null;
    // 记录用户当前的位置信息
    public static PoiInfo currentAddr;
    // 记录用户默认的收货地址
    public static UserAddress userReceiveAddr;
    public static LatLng currentLatLng;

    // 清空数据
    public static void  clearUserInfo(){
        mUser = new User();
        mUserAddress = new ArrayList<>();
    }

}
